package com.ctrlcar.giftrecord.service;

import com.ctrlcar.giftrecord.pojo.GiftBook;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ctrlcar.giftrecord.pojo.model.Result;
import com.ctrlcar.giftrecord.vo.GiftBookListVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author
* @description 针对表【gift_book】的数据库操作Service
* @createDate 2025-03-26 16:43:36
*/

public interface GiftBookService extends IService<GiftBook> {

    /**
     * 根据用户id获取list
     * @param userId
     * @return
     */
    Result<List<GiftBookListVo>> getGiftBookList(Integer userId);

    /**
     * 根据id删除本子
     * @param bookId
     * @return
     */
    Result<String> delBookById(Integer bookId);
}
